<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="PtGraph,mathlib.grapher.PtGraph,parentGrapher,lineStyle,pts,connected,showPoints,addPoint,redraw" name="keywords">
<title>mathlib.grapher.PtGraph</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'PtGraph - API Documentation';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">flashgraph API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mathlib/grapher/PtGraph.html&amp;mathlib/grapher/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;PtGraph</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class PtGraph"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mathlib.grapher</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class PtGraph</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">PtGraph <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> flash.display.Sprite</td>
</tr>
</table>
<p></p>
 A graph of a series of points. To create one and add it to a particular
 Grapher2D, use that object's <code>addPtGraph()</code> method.
 <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="Grapher2D.html#addPtGraph()" target="">Grapher2D.addPtGraph()</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#connected">connected</a> : Boolean<div class="summaryTableDescription"> True if the points should be drawn with lines connecting them.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#lineStyle">lineStyle</a> : <a href="../grapher/LineStyle.html">LineStyle</a>
<div class="summaryTableDescription">
  The style of line to use for drawing connecting lines if
  <code>connected</code> is true and for the points if
  <code>showPoints</code> is true.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#parentGrapher">parentGrapher</a> : <a href="../grapher/Grapher2D.html">Grapher2D</a>
<div class="summaryTableDescription">[read-only] The grapher into which this object is drawn.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#pts">pts</a> : Array<div class="summaryTableDescription">
  The array of <code>flash.geom.Point</code>s to be drawn.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#showPoints">showPoints</a> : Boolean<div class="summaryTableDescription"> True if small circles should be drawn for each point.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#PtGraph()">PtGraph</a>(n_parentGrapher:<a href="Grapher2D.html">Grapher2D</a>, n_pts:Array, n_connected:Boolean = true, n_showPoints:Boolean = true, n_lineStyle:<a href="LineStyle.html">LineStyle</a> = null)</div>
<div class="summaryTableDescription">
  Create a new PtGraph object.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addPoint()">addPoint</a>(graphx:Number, graphy:Number):void</div>
<div class="summaryTableDescription">
  Add a new point to the end of the list and redraw the graph.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#redraw()">redraw</a>():void</div>
<div class="summaryTableDescription">
  Redraw the graph.</div>
</td><td class="summaryTableOwnerCol">PtGraph</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="connected"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">connected</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>connected:Boolean</code>&nbsp;&nbsp;[read-write]<p> True if the points should be drawn with lines connecting them. </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get connected():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set connected(value:Boolean):void</code>
<br>
</div>
<a name="lineStyle"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineStyle</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>lineStyle:<a href="../grapher/LineStyle.html">LineStyle</a></code>&nbsp;&nbsp;[read-write]<p>
  The style of line to use for drawing connecting lines if
  <code>connected</code> is true and for the points if
  <code>showPoints</code> is true.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get lineStyle():<a href="../grapher/LineStyle.html">LineStyle</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set lineStyle(value:<a href="../grapher/LineStyle.html">LineStyle</a>):void</code>
<br>
</div>
<a name="parentGrapher"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">parentGrapher</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>parentGrapher:<a href="../grapher/Grapher2D.html">Grapher2D</a></code>&nbsp;&nbsp;[read-only]<p> The grapher into which this object is drawn. </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get parentGrapher():<a href="../grapher/Grapher2D.html">Grapher2D</a></code>
<br>
</div>
<a name="pts"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">pts</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>pts:Array</code>&nbsp;&nbsp;[read-write]<p>
  The array of <code>flash.geom.Point</code>s to be drawn. If you
  modify elements of this array you should call <code>redraw()</code> to
  update the display. If you assign to the property, the redraw will be
  handled automatically.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get pts():Array</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set pts(value:Array):void</code>
<br>
</div>
<a name="showPoints"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">showPoints</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>showPoints:Boolean</code>&nbsp;&nbsp;[read-write]<p> True if small circles should be drawn for each point. </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get showPoints():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set showPoints(value:Boolean):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="PtGraph()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">PtGraph</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function PtGraph(n_parentGrapher:<a href="Grapher2D.html">Grapher2D</a>, n_pts:Array, n_connected:Boolean = true, n_showPoints:Boolean = true, n_lineStyle:<a href="LineStyle.html">LineStyle</a> = null)</code><p>
  Create a new PtGraph object. There should never be a reason to call
  this; instead, use the <code>addPtGraph()</code> method of an instance
  of Grapher2D. 
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">n_parentGrapher</span>:<a href="Grapher2D.html">Grapher2D</a></code> &mdash; The Grapher2D instance with which this graph is
   associated.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">n_pts</span>:Array</code> &mdash; An array of <code>flash.geom.Point</code>s to be drawn.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">n_connected</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; True to draw lines connecting the points in order
   of their appearance in <code>_pts</code>
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">n_showPoints</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; True to draw a small circle at the location of
   each point. Note: if <code>connected</code> and this property are
   both false, there will be nothing to draw.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">n_lineStyle</span>:<a href="LineStyle.html">LineStyle</a></code> (default = <code>null</code>)<code></code> &mdash; The style of line to use for drawing connecting
   lines if <code>connected</code> is true and for points if
   <code>showPoints</code> is true. If its value is <code>null</code>,
   <code>LineStyle.Hairline</code> is used.
  </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="Grapher2D.html#addPtGraph()" target="">Grapher2D.addPtGraph()</a>
<br>
<a href="LineStyle.html#Hairline" target="">LineStyle.Hairline</a>
</div>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addPoint()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addPoint</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addPoint(graphx:Number, graphy:Number):void</code><p>
  Add a new point to the end of the list and redraw the graph.
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">graphx</span>:Number</code> &mdash; The x-coordinate of the point to add.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">graphy</span>:Number</code> &mdash; The y-coordinate of the point to add.
  </td>
</tr>
</table>
</div>
<a name="redraw()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">redraw</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function redraw():void</code><p>
  Redraw the graph.
  </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
